import com.aop.serviceimpl.AccountServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AccountTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext("beans.xml");
        AccountServiceImpl accountService = applicationContext.getBean("accountService", AccountServiceImpl.class);
        accountService.transferMoney("杨帆","成都",1000);
    }
}
